<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</meta>
<title>F.diff演示</title>
<style type="text/css">
#box b{background-color:#9c0000; margin:0 5px; color:#fff; display:inline-table; width:35px; text-align:center;}
</style>
<script type="text/javascript" src="../../1st.js"></script>
</head>
<body>
<div>离深圳大运会开幕时间还有：<span id="box"></span></div>

<script type="text/javascript">
F.ajax(F.data("data.php?act=getdate")).callback(function(d){
	var d2 = new Date(F.date("2011-8-12 20:00").getTime()-new Date().diff(d,1));
	var fun = function(){
		var arr = new Date().diff(d2);
		arr[4] = arr[4].zero(3);
		F("box").html("<b>$0</b>天<b>$1</b>小时<b>$2</b>分<b>$3</b>秒<b>$4</b>毫秒".mix(arr)); 
	};
	fun();
	window.setInterval(fun, 99);
});
</script>
</body>
</html>